Solutions for Comp248 Assignment 4

#ifndef THERMTAT_H 
#define THERMTAT_H 

//class declaration
//this class follows the implementation of solution 2, which makes different 
//assumptions that was not covered in the problem statement in the assignment.
class Thermostat

{
	private:

		double tempSet, delta;
		//Thermostat Temperature setting and tolerance.

		bool switchMode;
		//Thermostat switch mode is also accounted for.
	
		

	public:
		Thermostat ();	
		// Construct a Thermostat with fixed Temperature settings
		// and tolerance, 23 and 1 deg respectively
		
		void readTemp(double roomTemp);
		//the function doesn't return a value, rather it just reads
		//the room temperature from the sensor and sets the switch on or off.
		
		bool switchState();
		//this function  returns the state of the switch.
};

#endif